<?php
namespace Forms\Filter;

use Pinenut\Form\Filter;

class Symbol2UnicodeAction extends Filter
{
	public function run()
	{
		$str = $this->request->value;
		$str = preg_replace("/%u([0-9a-f]{3,4})/i","&#x\\1;",urldecode($str));
		return html_entity_decode($str,null,'UTF-8');
	}
}